<ul id="pagination">
<?php if ($this->pageCount): ?>
<!-- Previous page link -->
<?php if (isset($this->previous)): ?>
    <li><a onclick="getPaginatedAdminTransactions('/admin/search-transaction/pagina/1', 'transaction')" style="cursor: pointer;">primeira</a></li>
<?php else: ?>
    <li><a>primeira</a></li>
<?php endif; ?>
 
<!-- Numbered page links -->
<?php foreach ($this->pagesInRange as $page): ?>
    <?php if ($page != $this->current): ?>
    	<li><a onclick="getPaginatedAdminTransactions('/admin/search-transaction/pagina/<?php echo $page ?>','transaction')" style="cursor: pointer;"><?php echo $page ?></a></li>
    <?php else: ?>
        <li class="active"><?php echo $page; ?> </li>
    <?php endif; ?>
<?php endforeach; ?>
 
<!-- Next page link -->
<?php if (isset($this->next)): ?>
	<li><a onclick="getPaginatedAdminTransactions('/admin/search-transaction/pagina/<?php echo $this->last ?>','transaction')" style="cursor: pointer;">&uacute;ltima</a></li>
<?php else: ?>
   <li><a>&uacute;ltima</a></li>
<?php endif; ?>
<?php endif; ?>
</ul>



